package com.zhubayi.springcloud.alibaba.service;

import com.zhubayi.springcloud.entities.CommonResult;
import com.zhubayi.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author zhubayi
 */
@Component
public class PaymentFallbackService implements IPaymentService{
    /**
     * 远程调用
     *
     * @param id
     * @return
     */
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回",new Payment(id,"error"));
    }
}
